/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  Lin_Cfg.h
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL Lin
 * @date 2025-03-25 19:03:22
 */

#ifndef LIN_CFG_H
#define LIN_CFG_H

#ifdef __cplusplus
extern "C"{
#endif

#include "Lin_Types.h"

/* Lin dev error detect */
#define LIN_DEV_ERROR_DETECT  (STD_OFF)

/*
Configuration: LIN_VERSION_INFO_API
- if STD_ON, Function Lin_GetVersionInfo is available
- if STD_OFF,Function Lin_GetVersionInfo is not available
*/
#define LIN_VERSION_INFO_API  (STD_OFF)
#define LIN_SLAVE_MODE_USED (STD_OFF)

/** \brief LIN core0 enable/disable */
#define LIN_CORE0_ENABLE STD_ON
/** \brief LIN core1 enable/disable */
#define LIN_CORE1_ENABLE STD_OFF
/** \brief LIN core2 enable/disable */
#define LIN_CORE2_ENABLE STD_OFF
/** \brief LIN core3 enable/disable */
#define LIN_CORE3_ENABLE STD_OFF

/*
Configuration : LIN_MAXIMUM_CHANNEL
It is the maximum lin channels configured.
*/
#define LIN_NUM_CHANNELS   (1U)

extern CONST(Lin_ConfigType, LIN_CONST) LinGlobalConfig;

#ifdef __cplusplus
}
#endif

#endif  /* LIN_CFG_H */
